<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>

<div class="navBar">
  <ul>
    <security:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
      <li <c:if test="${param.selected == 'contactForm'}">class="active"</c:if>><a href="/contact/contactForm.html">Contact Test</a></li>
    </security:authorize>
    
    <security:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
      <li <c:if test="${param.selected == 'forum'}">class="active"</c:if>><a href="/forum/forum.html">Test Forum</a></li>
    </security:authorize>
    
    <security:authorize ifAnyGranted="ROLE_ADMIN">
      <li <c:if test="${param.selected == 'users'}">class="active"</c:if>><a href="/user/listUsers.html">Users</a></li>
    </security:authorize>
  </ul>
  <div class="clear"></div>
</div>